   <!-- Content Bar Header -->
      <?php
      //userQueries::userLevel("1");
      $auth = Auth::getAuth('current_user');
         if($auth['user_level_id']=="2"){
            echo $this->setInclude("contentHeader",null,null,null);
         }
         $a = new Mail_Notification();
         $fs = new functions();
         //echo $a->set_notifications();
      ?>
<div class="content_wrapper">
   <div class="padding_5">
      <div class="widget">
         
         <div class="head">
             <div class="title_head">
               Privacy Settings
            </div>
            <div class="right_bar_tab">
               <!-- Tabs -->
                  <?php //echo functions::tabber(array("tab1"=>"User List","tab2"=>"Add Users")); ?>
                  <ul class="tabs">
                     <li rel="tab1" class=" active">Notifications</li>
                     <!--<li rel="tab2">Add Users</li>-->
                     <!--<li rel="tab3" class="showAllUserDeactivatedUser ">Deactivated User</li>-->
                  </ul>
            </div>
         </div>
         <div class="tab_container">
            <?php
            $db = new Database();
            $json_decode = Settings::noti_settings($auth['id'],'notifications');
            
            $json_notifications = $json_decode[0]['notifications'];
            $json_comment = $json_notifications['Comment'];
            $json_like = $json_notifications['Like'];
            $json_tagged = $json_notifications['Tagged'];
            $json_request = $json_notifications['Request'];
            $json_message = $json_notifications['Message'];
            $json_count_checked = $json_notifications['count_checked'];
            $json_summary_notification = $json_notifications['summary_notification'];
           
            if($json_count_checked[0]==9){
               $checked = "checked=checked";
            }else{
               $checked = "";
            }
            if($json_summary_notification[0]==1){
               $checked_summary_notification = "checked=checked";
            }else{
               $checked_summary_notification = "";
            }
            ?>
            <div id="tab1" class="tab_content" style="display: block;">
               <div style="float: left;width: 100%;"><h3> Notifications</h3></div>
               <div class="hr"></div>
                  <div style="margin-left: 30px;"><p style="font-weight:bold;">How You Want To Get Email Notifications</p></div>
                  <div style="margin-left: 30px;border-bottom: 1px solid #ddd;"><p style="font-weight:bold;"><input type="checkbox" class="selectAll_noti" name="selectCheckBox_noti[]" <?php echo $checked; ?> style="margin-top: 12px;"> Select All</p></div>
                  
               <!-- Comment -->
                  <div style="margin-left: 50px;">
                     <div style="float: left;width: 20%;border-right: 1px solid #ddd;">
                        <div class="padding_5">
                           <ul>
                              <li><p style="font-weight:bold;">Name</p></li>
                              <li><i class="icon-comment"></i><p style="font-weight:bold;margin-top: 5px;">Comment</p></li>
                              <li><i class="icon-thumbs-up"></i><p style="font-weight:bold;margin-top: 5px;">Like</p></li>
                              <li><i class="icon-tags"></i><p style="font-weight:bold;margin-top: 5px;">Tagged </p></li>
                              <li><i class="icon-envelope"></i><p style="font-weight:bold;margin-top: 5px;">Message </p></li>
                              <li><i class="icon-file"></i><p style="font-weight:bold;margin-top: 5px;"> Tasks </p></li>
                           </ul>
                        </div>
                     </div>
                     <div style="float: left;width: 120px;border-right: 1px solid #ddd;">
                        <div class="padding_5">
                           <ul>
                              <?php
                              // Checked
                                 //$comment_a = $fs->get_checked($json_comment[0]);
                                 $like_a = $fs->get_checked($json_like[0]);
                                 $tag_a = $fs->get_checked($json_tagged[0]);
                              // Val
                                 $like_a_val = $fs->get_checked($json_like[0]);
                                 $tagged_a_val = $fs->get_checked($json_tagged[0]);
                              ?>
                              <li><p style="font-weight:bold;text-align: center;">Allow Post</p></li>
                              <!--<li style="background-color: whitesmoke;"><center><input type="checkbox" data-noti-name="Comment" name="selectCheckBox_noti[]" data-name="comment" data-value=""  class="selectCheckBox_noti" data-id="Post" style="margin-top: 12px;"></center></li>-->
                              <li><center><div style="margin-top: 10px;height:19px;"></div></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $like_a['checked']; ?> data-noti-name="Like" name="selectCheckBox_noti[]" data-name="like" data-value="<?php echo $like_a_val['val']; ?>"  class="selectCheckBox_noti" data-id="Post" style="margin-top: 5px;"></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $tag_a['checked']; ?> data-noti-name="Tagged" name="selectCheckBox_noti[]" data-name="tagged" data-value="<?php echo $tagged_a_val['val']; ?>"  class="selectCheckBox_noti" data-id="Post" style="margin-top: 5px;"></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                           </ul>
                        </div>
                     </div>
                     <div style="float: left;width: 120px;border-right: 1px solid #ddd;">
                        <div class="padding_5">sdsda
                           <ul>
                              <?php
                              // Checked
                                 $comment_b = $fs->get_checked($json_comment[0]);
                                 $like_b = $fs->get_checked($json_like[1]);
                                 $tag_b = $fs->get_checked($json_tagged[1]);
                              // Val
                                 $comment_b_val = $fs->get_checked($json_comment[0]);
                                 $like_b_val = $fs->get_checked($json_like[1]);
                                 $tagged_b_val = $fs->get_checked($json_tagged[1]);
                              ?>
                              <li><p style="font-weight:bold;text-align: center;">Allow Comment</p></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $comment_b['checked']; ?> data-noti-name="Comment" name="selectCheckBox_noti[]" data-name="comment" data-value="<?php echo $comment_b_val['val']; ?>"  class="selectCheckBox_noti" data-id="Comment" style="margin-top: 12px;"></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $like_b['checked']; ?> data-noti-name="Like" name="selectCheckBox_noti[]" data-name="like" data-value="<?php echo $like_b_val['val']; ?>"  class="selectCheckBox_noti" data-id="Comment" style="margin-top: 5px;"></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $tag_b['checked']; ?> data-noti-name="Tagged" name="selectCheckBox_noti[]" data-name="tagged" data-value="<?php echo $tagged_b_val['val']; ?>"  class="selectCheckBox_noti" data-id="Comment" style="margin-top: 5px;"></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                           </ul>
                        </div>
                     </div>
                     <div style="float: left;width: 120px;border-right: 1px solid #ddd;">
                        <div class="padding_5">
                           <ul>
                              <?php
                              // Checked
                                 $tag_c = $fs->get_checked($json_tagged[2]);
                                 $request_c = $fs->get_checked($json_request[0]);
                              // Val
                                 $tagged_c_val = $fs->get_checked($json_tagged[2]);
                                 $request_c = $fs->get_checked($json_request[0]);
                              ?>
                              <li><p style="font-weight:bold;text-align: center;">Allow Tasks</p></li>
                              <!--<li style="background-color: whitesmoke;"><center><input type="checkbox" <?php //echo $fs->get_checked($json_comment[2])['checked']; ?> data-noti-name="Comment" name="selectCheckBox_noti[]" data-name="comment" data-value="<?php //echo $fs->get_checked($json_comment[2])['val']; ?>"  class="selectCheckBox_noti" data-id="Request" style="margin-top: 12px;"></center></li>-->
                              <li><center><div style="margin-top: 10px;height:19px;"></div></center></li>
                              <!--<li style="background-color: whitesmoke;"><center><input type="checkbox" <?php //echo $fs->get_checked($json_like[2])['checked']; ?> data-noti-name="Like" name="selectCheckBox_noti[]" data-name="like" data-value="<?php //echo $fs->get_checked($json_like[2])['val']; ?>"  class="selectCheckBox_noti" data-id="Request" style="margin-top: 5px;"></center></li>-->
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $tag_c['checked']; ?> data-noti-name="Tagged" name="selectCheckBox_noti[]" data-name="tagged" data-value="<?php echo $tagged_c_val['val']; ?>"  class="selectCheckBox_noti" data-id="Request" style="margin-top: 5px;"></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $request_c['checked']; ?> data-noti-name="Request" name="selectCheckBox_noti[]" data-name="request" data-value="<?php echo $request_c['val']; ?>"  class="selectCheckBox_noti" data-id="Request" style="margin-top: 5px;"></center></li>
                           </ul>
                        </div>
                     </div>
                     <div style="float: left;width: 120px;border-right: 1px solid #ddd;">
                        <div class="padding_5">
                           <ul>
                              <?php
                              // Checked
                                 $msg_d = $fs->get_checked($json_message[0]);
                              // Val
                                 $msg_d_val = $fs->get_checked($json_message[0]);
                              ?>
                              <li><p style="font-weight:bold;text-align: center;">New Message</p></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $msg_d['checked']; ?> data-noti-name="Message" name="selectCheckBox_noti[]" data-name="message" data-value="<?php echo $msg_d_val['val']; ?>"  class="selectCheckBox_noti" data-id="New Message" style="margin-top: 5px;"></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                           </ul>
                        </div>
                     </div>
                     <div style="float: left;width: 120px;border-right: 1px solid #ddd;">
                        <div class="padding_5">
                           <ul>
                              <?php
                              // Checked
                                 $msg_e = $fs->get_checked($json_message[1]);
                              // Val
                                 $msg_e_val = $fs->get_checked($json_message[1]);
                              ?>
                              <li><p style="font-weight:bold;text-align: center;">Reply Message</p></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                              <li style="background-color: whitesmoke;"><center><input type="checkbox" <?php echo $msg_e['checked']; ?> data-noti-name="Message" name="selectCheckBox_noti[]" data-name="reply" data-value="<?php echo $msg_e_val['val']; ?>"  class="selectCheckBox_noti" data-id="Reply Message" style="margin-top: 5px;"></center></li>
                              <li><center><div style="margin-top: 5px;height:19px;"></div></center></li>
                           </ul>
                        </div>
                     </div>
                     <div class="hr"></div>
                     <div style="float: left;width: 100%;">
                        <div style="margin-left: 30px;"><p style="font-weight:bold;">Allow summary notifications?</p></div>
                        <div style="margin-left: 30px;border-bottom: 1px solid #ddd;"><p style="font-weight:bold;"><input type="checkbox" <?php echo $checked_summary_notification; ?> class="select_summar_noti" name="select_summar_noti[]"  style="margin-top: 12px;"> Check this one.</p></div>
                     </div>     
                     <div style="float: right;width: 100%;margin-top: 10px;">
                        <div style="margin-left: 642px;">
                           <input type="submit" class="btn-blueBtn save_notifications"  value="Save">
                        </div>
                     </div>
                  </div>
                
            </div>
            
            
            <!-- Add New User -->
            <div id="tab2" class="tab_content">
               
            </div>
            
            
            <!-- Update Deactivated User User -->
            <div id="tab3" class="tab_content">
               
            </div>
            
         </div>
         
     </div>
   </div>
</div>